<#include "/view/common/command/para.html">
<div>
 <table class="zs-form-tab">
   <tbody>
   <tr>
   <td>
	<div  style="float:left;margin:0px 0px 0px 20px;padding:3px 0px;">
	            	<label style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;服役情况：</label>
	            </div>
     <com-single-check style="float:left" ng-change="onServeOptionClick" ng-model="serveOptionModel" data='serveOption'></com-single-check>
	</td>
	<td style="width: 5%"><input type="button" value="新建" class="zs-btn" style="float: right;" ng-click="onCreateClick()"></td>
   </tr>
   </tbody>
 </table>
	<div style="height: 100%;overflow: auto;" ng-style="{height:(Map_H-100)+'px'}">
	<table class="zs-data-tab" width="100%" >
		<thead>
			<tr>
				<th style="background: #cccccc" class="head" width="34.4px">序号</th>
				<th style="background: #cccccc" class="head" width="209.6px">监测站点名称</th>
				<th style="background: #cccccc" class="head" width="114.4px">监测站点编号</th>
				<th style="background: #cccccc" class="head" width="272px">设备名称</th>
				<th style="background: #cccccc" class="head" width="114.4px">设备出厂编号</th>
				<th style="background: #cccccc" class="head" width="59.2px">启用日期</th>
				<th style="background: #cccccc" class="head" width="59.2px">服务年限</th>
				<th style="background: #cccccc" class="head" width="59.2px">是否在役</th>
				<th style="background: #cccccc" class="head" width="72px">退役日期</th>
				<th style="background: #cccccc" class="head" width="59.2px">退役原因</th>
				<th style="background: #cccccc" class="head" width="84.8px">设备现场照片</th>
				<th style="background: #cccccc" class="head" width="35.2px">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="curRow in assetsRegisterList.data"
				class="{{ isDoubleNum($index) ? 'even':'' }}">
				<td class="center">{{$index+1}}</td>
				<td class="center"><label ng-bind="curRow.STATION_NAME"></label></td>
				<td class="center"><label ng-bind="curRow.STATION_CODE"></label></td>
				<td class="center"><label ng-bind="curRow.DEVICE_NAME"></label></td>
				<td class="center"><label ng-bind="curRow.DEVICE_NUM"></label></td>
				<td class="center"><label
					ng-bind="curRow.OENGING_DATE|asDate|date:'yyyy-MM-dd'"></label></td>
				<td class="center"><label ng-bind="curRow.MONTHS|toYearMonth"></label></td>
				<td class="center"><label>{{curRow.IS_OOS=='1'?'否':'是'}}</label></td>
				<td class="center"><label
					ng-bind="curRow.OOS_DATE|asDate|date:'yyyy-MM-dd'"></label></td>
				<td class="center"><a><label ng-bind="curRow.OOS_REASON"></label></a></td>
				<td class="center"><img ng-if="curRow['IMG']"
					ng-src="${hostBase}{{curRow['IMG'] | firstImgUrl}}"
					onclick="imgShow($(this))" style="width: 50px; height: 40px;">
					<img ng-if="!curRow['IMG']"
					ng-src="${wdpjsRootPath}wdp/images/zs-photo.png"
					style="width: 50px; height: 40px;"></td>
				<td class="center"><a style="cursor: pointer"
					ng-click="onEditClick(curRow)">编辑</a>
					<span ng-show="curRow.DEVICE_TYPE=='2'">|</span>
					<a style="cursor: pointer" ng-show="curRow.DEVICE_TYPE=='2'"
					ng-click="onDeleteClick(curRow)">删除</a></td>
			</tr>
		</tbody>
	</table>
	</div>
	<div com-dialog width="800" height="450" title="新建资产备案信息" ng-model="createDialog" >
	  		<#include "${viewDir}/WasteWater/gyfsQyManager/assetsRegister/create.html">
   </div>
   <div com-dialog  title="设备资产信息编辑" width='600' height='220' ng-model="editDialog">
	<#include "${viewDir}/WasteWater/gyfsQyManager/assetsRegister/edit.html">
</div>
</div>

